package org.tuoren.official.domain.bo;

import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.tuoren.common.core.validate.AddGroup;
import org.tuoren.common.core.validate.EditGroup;
import org.tuoren.common.mybatis.core.domain.BaseEntity;
import org.tuoren.official.domain.TQrCode;

/**
 * 二维码信息维护业务对象 t_qr_code
 *
 * @author Lion Li
 * @since 2024-11-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TQrCode.class, reverseConvertGenerate = false)
public class TQrCodeBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 二维码名称
     */
    @NotBlank(message = "二维码名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 二维码地址
     */
    @NotBlank(message = "二维码地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String qrCodeUrl;

    /**
     * 菜单id，为0时默认显示在页面底部
     */
    @NotNull(message = "菜单id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long menuId;
    /**
     * 适用平台
     */
    private String plat;
    /**
     * 图标
     */
    private String bannerUrl;
}
